#ifndef QDICETHREAD_H
#define QDICETHREAD_H

#include <QObject>
#include <QThread>
#include <QDebug>
#include <QDateTime>

class QDiceThread:public QThread
{
    Q_OBJECT
public:
    QDiceThread();
    void startDice();
    void pauseDice();
    void endDice();

    int computeV();
protected:
    void run() Q_DECL_OVERRIDE;
private:
    int seq = 0;
    int v;
    bool t_running;
    bool t_pause;
signals:
    void newDiceValue(int seq, int v);

};

#endif // QDICETHREAD_H
